/**
 * 小程序配置文件
 */

//本地地址
// var host = "http://localhost:8080/eae/api/";
//var host = "http://eae.mini.kaililaw.com/eae/api/";

// 测试地址
// var host = "http://mini.kaililaw.com/eae/api/";
// 线上地址
var host = "https://mini.kaililaw.com/eae/api/";
//var host = "http://192.168.1.157:8080/eae/api/";


 var host1 = "https://mini.kaililaw.com/studylaw/";//线上地址
 var host2 = "https://mini.kaililaw.com/reading/api/";
 var host3 = "https://mini.kaililaw.com/";//线上地址


var config = {
  // edit by kingkong
  //设置本小程序appid
  appid: 'wx23db6333d1565953',

  //用户模块
  //登陆
  login: `${host}user/login`,
  //获取手机号
  tel: `${host}user/tel`,
  //微信手机号登陆
  wxdl: `${host}user/wxdl`,
  //注册
  reg: `${host}user/reg`,
  //发送验证码
  vcode: `${host}user/vcode`,
  //验证码校验登陆
  verify: `${host}user/verify`,
  //用户信息修改
  user: `${host}user/user`,
  //用户退出登录
  logout: `${host}user/logout`,

  //考试模块
  //考试列表
  getExamList: `${host}exam/getExamList`,

  // edit by kingkong
  //考试须知
  //getExplain: `${host}exam/s2/getExplain`, 
  getExplain: `${host}exam/baoming`,
  //开始考试
  //beginExam: `${host}exam/s2/beginExam`,
  beginExam: `${host}exam/beginExam`,
  //获取考试题
  getQuestions: `${host}exam/getQuestions`,
  //提交考试成绩
  addRecord: `${host}exam/addRecord`,
  //查询考试成绩
  queryRecord: `${host}exam/queryRecord`,
  //获取考试信息
  gotoApply: `${host}exam/queryRecord`,
  //用户答题报告
  getReport: `${host}exam/getReport`,
  //用户考试记录
  allRecords: `${host}exam/allRecords`,
  //用户答题记录
  recordReport: `${host}exam/recordReport`,

  //课程模块
  //头部统计数据
  courseHeader: `${host}web/study/header`,
  //课程列表
  courseList: `${host}web/study/courseList`,
  //章节列表
  courseChapterList: `${host}web/study/courseChapterList`,
  //笔记列表
  courseNoteList: `${host}web/study/courseNoteList`,
  //添加笔记
  courseNoteAdd: `${host}web/study/courseNoteAdd`,
   //删除笔记
   courseNoteDel: `${host}web/study/courseNoteDel`,
  //练习题
  courseExerciseList: `${host}web/study/courseExerciseList`,
  //用户学习
  userStudyBehaviourAdd: `${host}web/study/userStudyBehaviourAdd`,
  //用户学习记录
  myStudyRecordList: `${host}web/study/myStudyRecordList`,
  //用户学习时间记录
  studyTimeAdd: `${host}web/study/v1-1/studyTimeAdd`,
  //学习排行榜
  //myunits: `${host}web/study/myunits`,
  myunits:`${host}web/study/myunitsstudytime`,
 
  //动态模块
  //动态列表
  news: `${host}news/news`,
  //动态分类
  newsTypes: `${host}news/news/types`,

  //广告图
  banner: `${host}banner/banners`,
  //消息通知
  message: `${host}message/messages`,

  //===============专项答题==============
  getExercisesList: `${host}practice/special/cats`,

  getExercisesType: `${host}practice/special/specials`,

  getExercisesQA: `${host}practice/special/qa`,


  
  //=========宪法答题====================
  
  //获取列表数据
  //getExercisesList: `${host1}api/xzLaw/getQuestionBankList`,
  //获取所有可用专项分类

  //获取列表详情数据
  //getExercisesDetails: `${host1}api/xzLaw/getQuestionBank`,

  //开始练习题
  //getExerciseesList: `${host1}api/xzLaw/beginAnswer`,
  //提交答案
  //postExerciseesAnswer: `${host1}api/xzLaw/insertAnswerRecord`,

 //练习结束
  //exerciseEnd: `${host1}api/xzLaw/getFinish`,

  //============end=================






//日历
calendar:`${host}calendar/today`,
//协议
userProtocol:`${host}message/yhxy`,
//隐私协议
protocol:`${host}message/ysxy`,



//获取我来闯关关卡
getGameLevels: `${host3}invented/game/index`,
 //根据关卡id获取每一关卡对应的题目及答案
 getQuestionAndAnswerByGateId: `${host3}invented/game/beginGate`,
 //领取奖品
 toRecever: `${host3}insertPrize`,
 //用户闯关是否分享得机会
 getOneChance: `${host3}share/updateUserGate`,
 //用户冲榜是否分享得机会
 getOneChances: `${host3}share/increaseTalentChance`,
 //获取擂台赛分类
 getCompetitionType: `${host3}challenge/getQuestionBankList`,

 //获取擂台赛结果
 getBattleResult: `${host3}challenge/vsresult`,


 
  //-------------在storage中存储数据的KEY----------------------------
  //存储用户答题集合
  questionList: 'questionList',
  //当前答题的位置
  currentPostion: 'postion',
  //当前问题obj
  currQuestion: 'currentQuestion',
  //是否完成本轮答题
  isFinished: "isFinished",

  //好友对战 分类id
  quesTypeId: 'quesTypeId',
  //好友对战 房间id
  roomId: 'roomId',
  currRoomInfo: 'currRoomInfo',

  

  //========一站到底数据存储需要的Key=========
  gateList: "gateList",

  //法律考试题
  examList: "examList",
  //宪法习作考试题
  exercisesList: "exercisesList",
  //考试结果实体记录
  examResultInfo: "examResultInfo",


};

module.exports = config